package com.mdsoft.service.impl;

import java.util.List;

import com.mdsoft.dao.GroupDao;
import com.mdsoft.po.Group;
import com.mdsoft.service.GroupService;

public class GroupServiceImpl implements GroupService {

	private GroupDao groupDao;
	
	@Override
	public void add(Group group) {
		groupDao.add(group);
	}

	@Override
	public Group getById(int groupId) {
		return groupDao.getById(groupId);
	}

	@Override
	public Group getByUserId(int userId) {
		return groupDao.getByUserId(userId);
	}

	@Override
	public List<Group> getAll() {
		return groupDao.getAll();
	}

	public GroupDao getGroupDao() {
		return groupDao;
	}

	public void setGroupDao(GroupDao groupDao) {
		this.groupDao = groupDao;
	}

}
